#ifndef ClientSocket_class
#define ClientSocket_class

#include "Socket.h"

class ClientSocket : private Socket
{
	public:
		ClientSocket ();
		ClientSocket ( std::string host, int port );
		virtual ~ClientSocket(){};

		const ClientSocket& operator << ( const std::string& ) const;
		const ClientSocket& operator >> ( std::string& ) const;
		int sockfd () const { return Socket::sockfd(); }
		void sock_nonblock (bool b) { Socket::set_non_blocking(b); }
		struct in6_addr get_server_addr6 () { return Socket::get_ipaddr6();}
};

#endif
